<template>
  <blog-smart-refresh @onRefreshListener="onRefresh">
    <blog-no-data :show="!title">
      <view style="height: 1200px;">
        <view style="padding-top: 100px;color: #000;text-align: center;">
          {{ title }}
        </view>
      </view>
    </blog-no-data>
  </blog-smart-refresh>
</template>


<script>
export default {
  data() {
    return {
      title: null
    }
  },
  methods: {
    onRefresh(onCall) {
      setTimeout(() => {
        onCall(true)
        this.title = "数据刷新完成，1200px长度，页面2"
      }, 3000)
    }
  }
}
</script>

